
package com.idealighter.game.roomcard.games.mustniuniu.message;

import com.baidu.bjf.remoting.protobuf.annotation.Protobuf;
import com.idealighter.game.core.annotation.ResMsg;
import com.idealighter.game.message.ModuleMsgIdConstant;
import com.idealighter.game.message.core.ResMessage;
import lombok.Data;

/**
 * 离开房卡-通知.
 *
 */
@ResMsg(ModuleMsgIdConstant.MustNiuNiu.RES_CLOSE_ROOM)
@Data
public class ResCloseRoomCardMsg implements ResMessage {
  @Protobuf(order = 1)
  private int id = ModuleMsgIdConstant.MustNiuNiu.RES_CLOSE_ROOM;
  // 解散类型(0:游戏尚未开始房主解散,1:游戏开始成员申请解散)
  @Protobuf(order = 2)
  private int type;

  public static enum CloseType {
    NO_START_BY_OWNER(0),

    STARTED_BY_PLAYERS(1),

    OWNER_BE_BANKER_OFF_BANKER(2),

    UNSTART_TIME_OUT(3),

    BANKER_BANKRUPT(4);

    public int type;

    private CloseType(int type) {
      this.type = type;
    }
  }
}
